import api from '../utils/api';

export async function queryPresetList(param) {
  return api.post('/instock/preset/queryPresetList', {
    data: JSON.stringify(param),
  });
}


export async function create(param) {
  return api.post('/instock/preset/create', {
    data: JSON.stringify(param),
  });
}

export async function remove(param) {
  return api.post('/instock/preset/remove', {
    data: JSON.stringify(param),
  });
}

export async function edit(param) {
  return api.post('/instock/preset/edit', {
    data: JSON.stringify(param),
  });
}

export async function qryById(param) {
  return api.post('/instock/preset/qryById', {
    data: JSON.stringify(param),
  });
}

export async function queryDetailList(param) {
  return api.post('/instock/preset/queryDetailList', {
    data: JSON.stringify(param),
  });
}

export async function delDetail(param) {
  return api.post('/instock/preset/removeDetail', {
    data: JSON.stringify(param),
  });
}

export async function qryDetailInfoById(param) {
  return api.post('/instock/preset/qryDetailInfoById', {
    data: JSON.stringify(param),
  });
}
export async function qryPresetDetailInfoById(param) {
  return api.post('/instock/preset/qryDetailById', {
    data: JSON.stringify(param),
  });
}
export async function editDetail(param) {
  return api.post('/instock/preset/editDetail', {
    data: JSON.stringify(param),
  });
}
export async function createDetail(param) {
  return api.post('/instock/preset/createDetail', {
    data: JSON.stringify(param),
  });
}

export async function qryRackList(param) {
  return api.post('/asset/queryRackList', {
    data: JSON.stringify(param),
  });
}

export async function doCheck(param) {
  return api.post('/asset/doCheck', {
    data: JSON.stringify(param),
  });
}

export async function querAssetListByParam(param) {
  return api.post('/asset/querAssetListByParam', {
    data: JSON.stringify(param),
  });
}